<template>
	<view class="">
		<dropdown :list="list" @onClick="select_list"></dropdown>
	</view>
</template>

<script>
	import dropdown from '@/components/dt-dropdown/dt-dropdown.vue'
	export default {
		components:{
			dropdown
		},
		data() {
			return {
				list:['吃饭','睡觉','打豆豆']
			}
		},
		methods: {
			select_list(e){
				console.log(e)
				uni.showToast({
					title:`您选择了${this.list[e]}`
				})
			}
		}
	}
</script>
